package com.itheima.service;

import com.itheima.pojo.Role;
import org.apache.xmlbeans.impl.xb.xmlconfig.Qnametargetlist;

import java.util.List;




import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;

import java.util.Map;

public interface RoleService {

    public List<Role> findAll();

    public List<Integer> findroleIdsByUserId(Integer userId);

    public PageResult findPage(QueryPageBean queryPageBean);

    public Map findPermissionAndMenuAll();

    public void add(Role role, Integer[] menuIds, Integer[] permissionIds);

    public Result delete(Integer id);

    public Map findPermissionIdsAndMenuIdsByRoleID(Integer id);

   public Role findById(Integer id);

   public void update(Role role, Integer[] menuIds, Integer[] permissionIds);
}
